package toy.keli.edic.data.local

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.RawQuery
import androidx.room.Update
import androidx.sqlite.db.SupportSQLiteQuery
import toy.keli.edic.data.Db
import toy.keli.edic.data.local.entity.BookItemIcoEntity
import toy.keli.edic.data.model.Query

@Dao
interface BookItemIcoDao {
    @Insert
    fun add(a: BookItemIcoEntity):Long
    @Update
    fun update(a: BookItemIcoEntity)
    @RawQuery
    fun select(query: SupportSQLiteQuery): Array<BookItemIcoEntity>

    fun find(): Query{
        return Query(Db.user,"book_item_ico")
    }
}